package com.lzw.mapper.superAdmin;

import com.lzw.pojo.StockEntries;
import com.lzw.pojo.Suppliers;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface StockManageMapper {
    List<StockEntries> list(@Param("medicine") String medicine, @Param("entryDate")LocalDate entryDate, @Param("supplier")String supplier);

    void delete(@Param("ids") List<Integer> ids);

    @Insert("INSERT INTO pharmacymanagement.stockentries(medicine, quantity, supplier, entry_date) VALUES (#{medicine}, #{quantity}, #{supplier}, #{entryDate})")
    void add(StockEntries stockEntries);

    void update(StockEntries stockEntries);
}
